#include "Pig.h"
#include "VisibleRect.h"
#include "Resources.h"
#include "ActionManager.h"

bool Pig::init()
{
	bool bRet = false;
	do 
	{
		//setAnchorPoint(ccp(0.5f, 0.5f));
		m_pPig = CCSprite::create(s_pig_stand, CCRectMake(0, 0, 84, 80));
		m_pPig->runAction(gActionManager->createPig());
		this->addChild(m_pPig, zOWNEDPIG);

		bRet = true;
	} while (0);
	return bRet;
}
